/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package programas;

/**
 *
 * @author gamas
 */
public class Convercion3 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        //Convercion de double-entero-binario-octal-decimal
        Double a=12.2d;
        Integer b=a.intValue();
        System.out.println(b);
        System.out.println("Binario"+" "+b.toBinaryString(b));
        System.out.println("Octal"+" "+b.toOctalString(b));
        Integer c=b.intValue();
        System.out.println("Decimal"+" "+c);

    }

}
